
package ch.hearc.cryptologie.cryptographie.symetrique.flots.rc4.use;

import java.io.UnsupportedEncodingException;

import ch.hearc.cryptologie.cryptographie.symetrique.flots.rc4.RC4;

public class UseRC4
	{
	
	/*------------------------------------------------------------------*\
	|*							Methodes Public							*|
	\*------------------------------------------------------------------*/
	
	public static void main(String[] args) throws UnsupportedEncodingException
		{
		main();
		}
	
	public static void main() throws UnsupportedEncodingException
		{
		RC4 rc4 = new RC4("Key");
		String text = "Plaintext";
		String cryptedText = rc4.crypt(text);
		System.out.println(text);
		System.out.println(cryptedText);
		System.out.println(rc4.decrypt(cryptedText));
		}
	
	/*------------------------------------------------------------------*\
	|*							Methodes Private						*|
	\*------------------------------------------------------------------*/
	
	}
